
import axios from '../request'
interface ParmsReg {
  loginName: string;
  password?: string;
  passwordMd5?: string;
}
export function registers(params: ParmsReg) {
  return axios.post('/user/register', params);
}
export function getUserInfo() {
  return axios.get('/user/info');
}
// export function EditUserInfo(params:Parms) {
//   return axios.put('/user/info', params);
// }

export function login(params: ParmsReg) {
  return axios.post('/user/login', params);
}

export function logout() {
  return axios.post('/user/logout')
}



